﻿<Canvas x:Class="New3DDemo.Lane"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             x:Name="root"
             d:DesignHeight="300" d:DesignWidth="300">
    <Canvas.Resources>
        <Style TargetType="Polygon">
            <Setter Property="Opacity" Value="0.3"/>
            <Setter Property="Fill" Value="Transparent"/>
            <Setter Property="Selector.IsSelected" Value="{Binding IsChecked}"/>
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="true">
                    <Setter Property="Fill" Value="Yellow"/>
                </Trigger>
                <Trigger Property="Selector.IsSelected" Value="true">
                    <Setter Property="Fill" Value="LightBlue"/>
                </Trigger>
            </Style.Triggers>
        </Style>
        <Style TargetType="Polyline">
            <Setter Property="Stroke" Value="White"/>
            <Setter Property="StrokeThickness" Value="1"/>
            <Setter Property="StrokeDashArray" Value="5,3"/>
        </Style>
    </Canvas.Resources>
        <Canvas x:Name="LaneDirectImagepanel"/>
    <Polyline x:Name="laneLine"/>
    <Polygon x:Name="polygon" Points="{Binding Points}"
                  Selector.IsSelected="{Binding IsChecked}"
                  MouseDown="status_MouseDown">
        </Polygon>
</Canvas>
